package net.qiqbframework.eventhandling.notice;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

@Getter
@Setter
public class DomainEventNoticeResponse {

    private List<ApplicationSubscriptionDto> applicationSubscriptions;


    @Getter
    @Setter
    public static class ApplicationSubscriptionDto {

        private String applicationName;

        private String instanceName;

        private List<EventRecordDto> eventRecord;
        /**
         * 通知给具体的实体的备注信息。如果异常，则报错异常信息
         */
        private String remark;
    }

    @Getter
    @Setter
    public static class EventRecordDto {

        private String replyId;

        private String listenerId;

    }
}
